package com.byzk.p2p.admin.borrow.dao;

import java.util.List;

import com.byzk.p2p.admin.borrow.dto.BorrowGroup;
import com.byzk.p2p.admin.borrow.dto.BorrowGroupUser;
import com.byzk.p2p.admin.borrow.vo.BorrowGroupUserVo;

public interface BorrowGroupUserDao {
	public List<BorrowGroup> listBorrowGroup();
	
	public List<BorrowGroup> listBorrowGroupByCondition(BorrowGroup borrowGroup);
	
	public Integer delete(Integer borrowGroupId);
	
	public Integer insert(List<BorrowGroupUser> borrowGroupUsers);
	
	public List<BorrowGroupUserVo> getGroupUsers(BorrowGroupUserVo borrowGroupUserVo);

	public int getGroupUsersCount(BorrowGroupUserVo borrowGroupUserVo);
	
	public List<BorrowGroupUserVo> getUsersByBorrowGroupId(Integer borrowGroupId);
	
	public List<BorrowGroupUserVo> getBorrowGroupUsers();	
	
	public BorrowGroup getBorrowGroupById(Integer id);
}
